package com.zhudoo.zhilian.util.web;

import com.alibaba.fastjson.JSON;

/**
 * 返回API的公共参数
 * Created by 王念 on 2016/11/14.
 */
public class Response {
    private String status;
    private String msg;
    private Object body;

    public Response() {
    }

    public Response(String status, String msg, Object body) {
        this.status = status;
        this.msg = msg;
        this.body = body;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    public Object getBody() {
        return body;
    }

    public void setBody(Object body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
